package pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 入库记录表
 */
public class StorageRecord implements Serializable {
//    private static final long serialVersionUID = 42L;
    private Integer id;//入库id
    private String srCode;//入库记录编号
    private String goodsName;//商品名称
    private String goodsDesc;//商品描述
    private String goodsUnit;//商品单位
    private Double goodsCount;//入库数量
    private Double totalAmount;//商品总额
    private Integer payStatus;//支付状态
    private Integer createdUserId;//创建人id

    private String createdTime;//创建时间
    private Integer updatedUserId;//修改人id
    private Date updatedTime;//修改时间

    private Integer supplierId;//供货商id

    private String supName;//供货商名称
    private Supplier supplier; // 药品供货商
    private List<Supplier> listSupplier; // 供货商集合

    public StorageRecord() {
    }

    public StorageRecord(int id, String srCode, String goodsName, String goodsDesc, String goodsUnit, Double goodsCount, Double totalAmount, int payStatus, int createdUserId, String createdTime, int updatedUserId, Date updatedTime, int supplierId, String supName) {
        this.id = id;
        this.srCode = srCode;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.totalAmount = totalAmount;
        this.payStatus = payStatus;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
        this.supplierId = supplierId;
        this.supName = supName;
    }

    public StorageRecord(Integer id, String srCode, String goodsName, String goodsDesc, String goodsUnit, Double goodsCount, Double totalAmount, Integer payStatus, Integer createdUserId, String createdTime, Integer updatedUserId, Date updatedTime, Integer supplierId, String supName, Supplier supplier) {
        this.id = id;
        this.srCode = srCode;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.totalAmount = totalAmount;
        this.payStatus = payStatus;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
        this.supplierId = supplierId;
        this.supName = supName;
        this.supplier = supplier;
    }

    @Override
    public String toString() {
        return "StorageRecord{" +
                "id=" + id +
                ", srCode='" + srCode + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsDesc='" + goodsDesc + '\'' +
                ", goodsUnit='" + goodsUnit + '\'' +
                ", goodsCount=" + goodsCount +
                ", totalAmount=" + totalAmount +
                ", payStatus=" + payStatus +
                ", createdUserId=" + createdUserId +
                ", createdTime=" + createdTime +
                ", updatedUserId=" + updatedUserId +
                ", updatedTime=" + updatedTime +
                ", supplierId=" + supplierId +
                ", supName=" + supName +
                '}';
    }

    public List<Supplier> getListSupplier() {
        return listSupplier;
    }

    public void setListSupplier(List<Supplier> listSupplier) {
        this.listSupplier = listSupplier;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return srCode
     */
    public String getSrCode() {
        return srCode;
    }

    /**
     * 设置
     * @param srCode
     */
    public void setSrCode(String srCode) {
        this.srCode = srCode;
    }

    /**
     * 获取
     * @return goodsName
     */
    public String getGoodsName() {
        return goodsName;
    }

    /**
     * 设置
     * @param goodsName
     */
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    /**
     * 获取
     * @return goodsDesc
     */
    public String getGoodsDesc() {
        return goodsDesc;
    }

    /**
     * 设置
     * @param goodsDesc
     */
    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    /**
     * 获取
     * @return goodsUnit
     */
    public String getGoodsUnit() {
        return goodsUnit;
    }

    /**
     * 设置
     * @param goodsUnit
     */
    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    /**
     * 获取
     * @return goodsCount
     */
    public Double getGoodsCount() {
        return goodsCount;
    }

    /**
     * 设置
     * @param goodsCount
     */
    public void setGoodsCount(Double goodsCount) {
        this.goodsCount = goodsCount;
    }

    /**
     * 获取
     * @return totalAmount
     */
    public Double getTotalAmount() {
        return totalAmount;
    }

    /**
     * 设置
     * @param totalAmount
     */
    public void setTotalAmount(Double totalAmount) {
        this.totalAmount = totalAmount;
    }

    /**
     * 获取
     * @return payStatus
     */
    public Integer getPayStatus() {
        return payStatus;
    }

    /**
     * 设置
     * @param payStatus
     */
    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    /**
     * 获取
     * @return createdUserId
     */
    public Integer getCreatedUserId() {
        return createdUserId;
    }

    /**
     * 设置
     * @param createdUserId
     */
    public void setCreatedUserId(Integer createdUserId) {
        this.createdUserId = createdUserId;
    }

    /**
     * 获取
     * @return createdTime
     */
    public String getCreatedTime() {
        return createdTime;
    }

    /**
     * 设置
     * @param createdTime
     */
    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * 获取
     * @return updatedUserId
     */
    public Integer getUpdatedUserId() {
        return updatedUserId;
    }

    /**
     * 设置
     * @param updatedUserId
     */
    public void setUpdatedUserId(Integer updatedUserId) {
        this.updatedUserId = updatedUserId;
    }

    /**
     * 获取
     * @return updatedTime
     */
    public Date getUpdatedTime() {
        return updatedTime;
    }

    /**
     * 设置
     * @param updatedTime
     */
    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    /**
     * 获取
     * @return supplierId
     */
    public Integer getSupplierId() {
        return supplierId;
    }

    /**
     * 设置
     * @param supplierId
     */
    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    /**
     * 获取
     * @return supName
     */
    public String getSupName() {
        return supName;
    }

    /**
     * 设置
     * @param supName
     */
    public void setSupName(String supName) {
        this.supName = supName;
    }

    /**
     * 获取
     * @return supplier
     */
    public Supplier getSupplier() {
        return supplier;
    }

    /**
     * 设置
     * @param supplier
     */
    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }
}
